<div class="container" style="min-height: 206px;">
<div class="heading"><a id="sidebaropengear" onclick="showSideBarSettings();" href="javascript:void(0);"><img width=16"
    height="16" src="./images/gear.png" alt="" /></a>Information
</div>
<div id="selectedcustomernav" class="inside" style="padding-bottom:0px !important;">
    <input type="text" id="remote-users" style="width:143px !important;display:none"/>

    <div class="selectedcustomer" style="text-align:center;">
        <center><img src="<?=getImage($location->customer->image,'images/content/',75,75);?>"/></center>
        <span id="selectedcustomer"><a href="index.php?r=Customers/update&id=<?=$location->customer->custno?>"><?php echo $location->customer->lastname?></a></span>

    </div>


</div>

<div class="inside" style="padding-top:0px; padding-bottom:0px;">
<h5 style="padding-left:11px;">Operations</h5>
<ul class="links" style="margin-left:0px !important;">
<li id='blankforvalidation2' style="display:none">&nbsp;</li>
<script>
itemArray = new Array();
empArray = new Array();
Ext.onReady(function(){
 vendorsItemsStore.each(function (item) {
    itemArray.push(item.data);
});

techStore.each(function (item) {
    empArray.push(item.data);
});   
});


function printSelect(option){
    var printPanel;
    if (!printPanel) {
        printForm = Ext.create('Ext.form.Panel', {
            action:'submit',
            defaults:{
                anchor:'100%'
            },
            bodyPadding:10,
            items:[

                {
                    xtype: 'label',

                    text: 'Select Print Type',
                    margins: '0 0 0 10'
                }
            ]
        });
        printPanel = Ext.create('Ext.window.Window', {
            title:'Customer Connect',
            width:100,
            height:50,
            layout:'fit',
            items:printForm,
            closeAction:'hide',
            buttons:[
                {
                    text:'Total Cost',
                    handler:function () {
                        var openlink=window.open('','_blank');
                        openlink.location=option.link + '&total=1';
                        printPanel.hide();

                    }
                },
                {
                    text:'Itemized',
                    handler:function () {
                        var openlink=window.open('','_blank');
                        openlink.location=option.link;
                        printPanel.hide();
                    }
                }
            ]
        });
    }
    printPanel.show();
    printPanel.center();
}

</script>

    
<?php if ($type == Invoice::TYPE_QUOTE): ?>
    <?php $this->renderPartial('_quoteMenu',array(
        'model'=>$model,
        'action'=>$action
    ));?>
    <?php elseif ($type == Invoice::TYPE_SALES_ORDERS): ?>
    <?php $this->renderPartial('_salesOrderMenu',array(
        'model'=>$model,
        'action'=>$action
    ));?>
    <?php elseif ($type == Invoice::TYPE_INVOICE): ?>

    <?php $this->renderPartial('_invoiceMenu',array(
        'model'=>$model,
        'action'=>$action
    ));?>
    <?php elseif($type==Invoice::TYPE_CREDIT_MEMO): ?>
    <?php $this->renderPartial('_creditMemoMenu',array(
        'model'=>$model,
        'action'=>$action
    ));?>
    <?php endif ?>
</ul>
</div>


</div>

